package com.example.mq.mqserver.core;

/**
 * @Description: 绑定，表示交换机和队列之间的关联关系
 * @Author: liudong
 */

public class Binding {
    //交换机的主键
    private String exchangeName;
    //队列的主键
    private String queueName;
    //Binding依附于Exchange和Queue
    //如果这两个任何一个没有持久化，Binding持久化是没有意义的
    private String bindingKey;

    public String getExchangeName() {
        return exchangeName;
    }

    public void setExchangeName(String exchangeName) {
        this.exchangeName = exchangeName;
    }

    public String getQueueName() {
        return queueName;
    }

    public void setQueueName(String queueName) {
        this.queueName = queueName;
    }

    public String getBindingKey() {
        return bindingKey;
    }

    public void setBindingKey(String bindingKey) {
        this.bindingKey = bindingKey;
    }
}
